<!--{assign var="menu_id" value="visit"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav"> 互访中心 </div>
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=visitme">谁看过我</a></li>
		  <li><a href="<!--{$oefile}-->&c=visit" class="current">我看过谁<em></em></a></li>
        </ul>
        <div class="clear"></div>
      </div>
      
      <div class="visitme_list">

        <div class="total_tips">
          <p class="text">
            您共浏览了 <b><!--{$total}--></b> 位会员的资料<br>
			主动给会员发信、送礼物，可增加彼此的互动！
          </p>
          <div class="btn" style="display:none;">
            <span class="span_1"><a href="<!--{$oefile}-->&c=vip">升级会员</a></span>
            <span class="span_2"><a href="<!--{$oefile}-->&c=profile">完善资料</a></span>
          </div>
		  <div class="clear"></div>
        </div>

		<!--{if empty($visit)}-->
        <div class="oe_nodata">
          <p class="p_1"><img src="<!--{$userskin}-->images/nodata.jpg" /></p>
          <p class="p_2">没有符合条件的信息！</p>
        </div>
		<!--{else}-->
        <div class="bd">
          <!--{foreach $visit as $volist}-->
          <dl id="list_<!--{$volist.viewid}-->" f="show_del">
            <dt>
			  <span><a href="<!--{$volist.homeurl}-->" target="_blank"><img src="<!--{$volist.headimg}-->" /></a></span>
			</dt>
            <dd>
              <h3>
			    <a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a>
                <span><!--{$volist.visitmetime|date_format:"%Y/%m/%d %H:%M"}--></span>
				<!--{if $volist.isonline == '1'}-->
                <em></em>
				<!--{/if}-->
              </h3>
              <p class="p_1">
			    <!--{$volist.age}-->岁 <!--{area type="text" value=$volist.dist1}--> <!--{area type="text" value=$volist.dist2}--> 
				<!--{if $volist.height > 0}-->
				<!--{$volist.height}-->CM
				<!--{/if}-->
				<!--{hook mod="var" item="marry" type="text" value=$volist.marry}-->
			  </p>
              <p class="p_2">
                <span class="span_1 cursor" f="pop_send_msg" data-touid="<!--{$volist.homeuid}-->"><i></i>发私信</span>
                <span class="span_3 cursor" f="pop_send_gift" data-touid="<!--{$volist.homeuid}-->"><i></i>送礼物</span>
				<font color="#999999"><!--{$volist.viewtime|date_format:"%m-%d %H:%M"}--></font>
              </p>
              <span class="del cursor" f="but_del" data-id="<!--{$volist.viewid}-->" style="display:none;"></span>
            </dd>
            <div class="clear"></div>
          </dl>
          <!--{/foreach}-->
          <div class="clear"></div>

        </div>
		<!--{if !empty($showpage)}-->
		<div class="oe_page"> <!--{$showpage}--> </div>
		<!--{/if}-->
		<!--{/if}-->

      </div>
	  <!--//visitme_list End-->

    </div>
  </div>
  <div class="clear"></div>
</div>

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->

<script type="text/javascript">
$(function(){
	//删除
	$(document).on("click", "[f='but_del']", function(){
		$_id = $(this).attr("data-id");
		$_url = _OE_FILE+"&c=<!--{$c}-->&a=del&id="+$_id;
		oeAjaxConfirmBox($_url, "确定要删除吗？", function(){
			$("#list_"+$_id).remove();
		});
	});
	//显示隐藏 删除按钮
	$(document).on("mouseover", "[f='show_del']", function(){
		if ($(this).find(".del").css("display") == "none") {
			$(this).find(".del").show();
		}
	});
	$(document).on("mouseout", "[f='show_del']", function(){
		if ($(this).find(".del").css("display") == "block") {
			$(this).find(".del").hide();
		}
	});
});
</script>
</body>
</html>